package com.hotel.minio.config;


import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Date: 2023/10/20 11:46
 */
@Configuration // 表名当前类是配置类
public class MinioConfig {
    public static final String URL="http://101.37.12.54/";  // 阿里云服务器ip

    private final String KEY="AFQ6K63OCD8CMPSV5037";               // 替换为自己的key 和 security
    private final String SEC="MpmUTh+rCGSm1S2GCt+zINxINWCpN+1xg9+kX8Zd";

    @Bean
    public MinioClient createMC(){
        return new MinioClient(URL,9001,KEY,SEC);
    }
}
